package com.audition.string;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @author xukang
 * @date 2021-02-19 17:13
 */
@Slf4j
public class StringTest {
    /**
     * public String(String original) {
     * this.value = original.value;
     * this.hash = original.hash;
     * }
     * public String(char value[]) {
     * this.value = Arrays.copyOf(value, value.length);
     * }
     * <p>
     * public String(StringBuffer buffer) {
     * synchronized(buffer) {
     * this.value = Arrays.copyOf(buffer.getValue(), buffer.length());
     * }
     * }
     * <p>
     * <p>
     * public String(StringBuilder builder) {
     * this.value = Arrays.copyOf(builder.getValue(), builder.length());
     * }
     */


    public static void main(String[] args) {
        Object str1 = "123";
        Object str2 = 123;
        log.info("{}",str1 instanceof String);
        log.info("{}",str2 instanceof String);

    }
}
